package pc15;

public class J05Ex36ComputeTime {

	public static void main(String[] args) {
		//1. 변수선언
		int num[] = {1234567890, 12345, 67890};
		String result = "";
		final int DAY=86400, HOUR=3600, MIN=60;
		
		//2. 시간 변환 (초 -> day, 초 -> hour, 초 -> min)
		for(int i = 0;i < 3;++i){
			result += num[i]+"초는 "+(num[i]/DAY)+"일, "+(num[i]%DAY/HOUR)+"시간, "
					+(num[i]%DAY%HOUR/MIN)+" 분,"+(num[i]%DAY%HOUR%MIN)+" 초 입니다.\n";
		}
		
		//3. 결과값 출력
		System.out.println(result);
	}
}
